package com.consumer.controllers;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.api.UserService;

@RestController
public class UserController {
	
	@Reference
	private UserService userService;
	
	@GetMapping("/test")
	public String testDubbo(){
		
		return this.userService.say();
	}

}
